﻿using Lhz.Common.Business;
using Lhz.Sc.Entity.Database;
using System;
using System.Collections.Generic;
using System.Linq;

namespace Lhz.Sc.Business
{
    public class OperationProxy : EntityProxy<Guid, Operation>
    {
        public OperationProxy(string pathConfiguration = null) : base(pathConfiguration)
        {

        }

        public List<Operation> QueryByUserGuidAndServiceGuid(Guid userGuid, Guid serviceGuid)
        {
            return CreateQueryable<Operation>().QueryByServiceGuid(serviceGuid).QueryByUserGuid(userGuid).ToList();
        }
    }
}
